package org.example.flea_market_mvc.enums;

import lombok.Getter;

@Getter
public enum LoginResponse {
    SUCCESS(true, "登录成功"),
    FAILURE(false, "登录失败"),
    INVALID_CREDENTIALS(false, "用户名或密码错误"),
    ACCOUNT_LOCKED(false, "账户已锁定"),
    ACCOUNT_EXPIRED(false, "账户已过期");

    private final boolean success;
    private final String message;

    LoginResponse(boolean success, String message) {
        this.success = success;
        this.message = message;
    }

}
